	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="/css/xq.css"/>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<title></title>
	</head>
	<body>
		<div class="content_zl" style="width:1056px;margin-top:30px;overflow: hidden;">
			<div class="" style="overflow: hidden;">
				<p class="title_zl" style="float:left;"><? echo $data['title'];?></p>
				<!-- <p style="float: right;margin-top:15px;margin-right: 50px;">倒计时<span style="color:red;">5</span>天</p> -->
			</div>
			<div class="tishi" style="padding:0;width:1056px;overflow:hidden;">
				<? echo $data['desc'];?>
			</div>
			<div class="out">
				<? print_r($data['content']);?>
			</div>
			<div class="sub" >
				<? if($data['isSignup']==0){?>
				<button>我要报名</button>
			<?} else { ?>
				<button style="background-color:gray">已报名</button>
			<? } ?>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		$(document).ready(function() {
			var that = this
			$('.sub').on('click', function() {
					var param = { id:'<? echo $data['id'];?>'}
					$.ajax({
						url: "/uc/ajaxSign",
						type: "get",
						dataType: "json",
						data: param,
						success: function(response) {
							console.log(response)
							if(response.code == 1) {
								alert(response.msg);
								location.reload;
							} else {
								alert(response.msg);
								location.reload;
							}
						},
						error: function(data) {
							console.log(data)
						}
					});
			})
		})
	</script>
